<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.user.nickname}</label>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Brand_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.brand.name}</label>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Series_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.series.name}</label>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Model_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.model.name}</label>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Category')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.category}</label>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Licensing_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.licensing_time}</label>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Kilometer')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.kilometer}</label>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_fire')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.is_fire? '是' : '否'}</label>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_blisters')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.is_blisters? '是' : '否'}</label>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_incident')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.is_incident? '是' : '否'}</label>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('所在区域')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.province.name}/{$row.city.name}/{$row.area.name}</label>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.name}</label>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <label class="control-label">{$row.mobile}</label>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Exterior')}:</label>
        <div class="col-xs-12 col-sm-8">
            {php}$exterior = explode(',',$row['exterior']);{/php}
            <ul class="row list-inline faupload-preview" id="p-exterior">
                {foreach $exterior as $k=>$v}
                <li class="col-xs-3">
                    <a href="{$v}" data-url="{$v}" target="_blank" class="thumbnail">
                        <img src="{$v}" onerror="this.src='/xtGwSBDCQl.php/ajax/icon?suffix=png';this.onerror=null;" class="img-responsive">
                    </a>
                </li>
                {/foreach}
            </ul>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Glass')}:</label>
        <div class="col-xs-12 col-sm-8">
            {php}$glass = explode(',',$row['glass']);{/php}
            <ul class="row list-inline faupload-preview" id="p-glass">
                {foreach $glass as $k=>$v}
                <li class="col-xs-3">
                    <a href="{$v}" data-url="{$v}" target="_blank" class="thumbnail">
                        <img src="{$v}" onerror="this.src='/xtGwSBDCQl.php/ajax/icon?suffix=png';this.onerror=null;" class="img-responsive">
                    </a>
                </li>
                {/foreach}
            </ul>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Lights')}:</label>
        <div class="col-xs-12 col-sm-8">
            {php}$lights = explode(',',$row['lights']);{/php}
            <ul class="row list-inline faupload-preview" id="p-lights">
                {foreach $lights as $k=>$v}
                <li class="col-xs-3">
                    <a href="{$v}" data-url="{$v}" target="_blank" class="thumbnail">
                        <img src="{$v}" onerror="this.src='/xtGwSBDCQl.php/ajax/icon?suffix=png';this.onerror=null;" class="img-responsive">
                    </a>
                </li>
                {/foreach}
            </ul>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wheel')}:</label>
        <div class="col-xs-12 col-sm-8">
            {php}$wheel = explode(',',$row['wheel']);{/php}
            <ul class="row list-inline faupload-preview" id="p-wheel">
                {foreach $wheel as $k=>$v}
                <li class="col-xs-3">
                    <a href="{$v}" data-url="{$v}" target="_blank" class="thumbnail">
                        <img src="{$v}" onerror="this.src='/xtGwSBDCQl.php/ajax/icon?suffix=png';this.onerror=null;" class="img-responsive">
                    </a>
                </li>
                {/foreach}
            </ul>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Interior')}:</label>
        <div class="col-xs-12 col-sm-8">
            {php}$interior = explode(',',$row['interior']);{/php}
            <ul class="row list-inline faupload-preview" id="p-interior">
                {foreach $interior as $k=>$v}
                <li class="col-xs-3">
                    <a href="{$v}" data-url="{$v}" target="_blank" class="thumbnail">
                        <img src="{$v}" onerror="this.src='/xtGwSBDCQl.php/ajax/icon?suffix=png';this.onerror=null;" class="img-responsive">
                    </a>
                </li>
                {/foreach}
            </ul>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Internal_function')}:</label>
        <div class="col-xs-12 col-sm-8">
            {php}$internal_function = explode(',',$row['internal_function']);{/php}
            <ul class="row list-inline faupload-preview" id="p-internal_function">
                {foreach $internal_function as $k=>$v}
                <li class="col-xs-3">
                    <a href="{$v}" data-url="{$v}" target="_blank" class="thumbnail">
                        <img src="{$v}" onerror="this.src='/xtGwSBDCQl.php/ajax/icon?suffix=png';this.onerror=null;" class="img-responsive">
                    </a>
                </li>
                {/foreach}
            </ul>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nacelle')}:</label>
        <div class="col-xs-12 col-sm-8">
            {php}$nacelle = explode(',',$row['nacelle']);{/php}
            <ul class="row list-inline faupload-preview" id="p-nacelle">
                {foreach $nacelle as $k=>$v}
                <li class="col-xs-3">
                    <a href="{$v}" data-url="{$v}" target="_blank" class="thumbnail">
                        <img src="{$v}" onerror="this.src='/xtGwSBDCQl.php/ajax/icon?suffix=png';this.onerror=null;" class="img-responsive">
                    </a>
                </li>
                {/foreach}
            </ul>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Motor')}:</label>
        <div class="col-xs-12 col-sm-8">
            {php}$motor = explode(',',$row['motor']);{/php}
            <ul class="row list-inline faupload-preview" id="p-motor">
                {foreach $motor as $k=>$v}
                <li class="col-xs-3">
                    <a href="{$v}" data-url="{$v}" target="_blank" class="thumbnail">
                        <img src="{$v}" onerror="this.src='/xtGwSBDCQl.php/ajax/icon?suffix=png';this.onerror=null;" class="img-responsive">
                    </a>
                </li>
                {/foreach}
            </ul>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gearbox')}:</label>
        <div class="col-xs-12 col-sm-8">
            {php}$gearbox = explode(',',$row['gearbox']);{/php}
            <ul class="row list-inline faupload-preview" id="p-gearbox">
                {foreach $gearbox as $k=>$v}
                <li class="col-xs-3">
                    <a href="{$v}" data-url="{$v}" target="_blank" class="thumbnail">
                        <img src="{$v}" onerror="this.src='/xtGwSBDCQl.php/ajax/icon?suffix=png';this.onerror=null;" class="img-responsive">
                    </a>
                </li>
                {/foreach}
            </ul>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:Form::radios('row[status]', ['0'=>'销售中', '1'=>'已销售', '2'=>'已取消', '100'=>'平台下架'], '0', ['data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
